﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Inventory
{
    public int id { set; get; }
    public string name { set; get; }
    public Type type { set; get; } //物品种类
    public int capacity { set; get; }  //容量
    public int num { set; get; } //数量
    public string sprite { set; get; }
    public string des { set; get; }

    public Inventory(int _id, string _name, Type _type, int _capacity, int _num, string _sprite, string _des)
    {
        this.id = id;
        this.name = _name;
        this.type = _type;
        this.capacity = _capacity;
        this.num = _num;
        this.sprite = _sprite;
        this.des = _des;
    }
}

public enum Type
{ 
    Weapon, //武器
    Comsuable,  //消耗品
    Prop  //道具
}

